css: Allow transitioning different-size shadows
authorMatthias Clasen <mclasen@redhat.com>
Tue, 2 Feb 2021 20:22:32 +0000 (15:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 2 Feb 2021 20:27:42 +0000 (15:27 -0500)
The code handles it just fine. The length check was
an erronous addition.

gtk/gtkcssshadowvalue.c

index 19314662e32cf81ad066d9502a1e1681018b1f7b..9ad69b918266c0285e21ed629af7b3993c05ff39 100644 (file)
@@ -172,9 +172,6 @@ gtk_css_value_shadow_transition (GtkCssValue *start,
   guint i, len;
   ShadowValue *shadows;
 
-  if (start->n_shadows != end->n_shadows)
-    return NULL;
-
   if (start->n_shadows > end->n_shadows)
     len = start->n_shadows;
   else